'use strict';

module.exports = app => {
  const Joi = app.Joi;
  return {
    registeUser: Joi.object().keys({
      // userName: Joi.string().alphanum().min(6).max(20).required(),
      userPwd: Joi.string().min(6).max(200).required().regex(/^.*(?=.{6,200})(?=.*\d)(?=.*[a-zA-Z]).*$/),// .min(6).max(20)/^[a-zA-Z0-9]{3,30}$/
      userPhone: Joi.string().min(11).max(11).required().regex(/^[1][2,3,4,5,6,7,8,9][0-9]{9}$/),//正则 
      referralCode: Joi.string().min(6).required(),
      smsCode:Joi.string().min(4).max(4).required(),
    }),
  };

};



